<%@page contentType="text/html; charset=utf-8" language="java" %>
<%@page import="biz.*" %>
<%
String ulink = "login.jsp";
String text ="登陆iWiki帐号";
String adminlink="";
if(session.getAttribute("uid") != null){
	ulink = "user.jsp";
	text = UserBiz.getUserByUid(Integer.parseInt(session.getAttribute("uid").toString())).getUname();
	if(UserBiz.getUserByUid(Integer.parseInt(session.getAttribute("uid").toString())).getTagAdmin())
		adminlink="<a href=\"useradmin.jsp\" target=\"_blank\">用户管理</a>&nbsp;&nbsp;<a href=\"itemadmin.jsp\" target=\"_blank\">词条管理</a>&nbsp;&nbsp;";
}
%>
<center>
<div id="head">
<p id="nav">
	<%=adminlink%><a href="additem.jsp?l=0&p=0&r=0">创建词条</a>&nbsp;&nbsp;<a href=<%=ulink%>><%=text%></a>&nbsp;&nbsp;<a href="index.jsp">主页</a>
</p>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
	<tr><td><img src=image/logo_small.png style="align:left" width=200 height=75 border=0 alt="iWiki"></td>
	<td align="right" valign="bottom">
		<form method="post" action="search.jsp?action=search">
		<input type="text" style="width:150px;" name="name" class="input">
		<input type="submit" style="width:60px;" value="搜索" class="button">
		</form>
	</td></tr>
</table>
<hr/>
</div>
</center>